import 'package:flutter/material.dart';
bool isNull(dynamic obj) {
  return obj == null;
}

bool isNotNull(dynamic obj) {
  return obj != null;
}

WrapAlignment getWrapAlignment(var alignment){
  WrapAlignment wrapAlignment=WrapAlignment.start;
  if(alignment==MainAxisAlignment.start){
    wrapAlignment=WrapAlignment.start;
  }else if(alignment==MainAxisAlignment.center){
    wrapAlignment=WrapAlignment.center;
  }else if(alignment==MainAxisAlignment.end){
    wrapAlignment=WrapAlignment.end;
  }else if(alignment==MainAxisAlignment.spaceBetween){
    wrapAlignment=WrapAlignment.spaceBetween;
  }else if(alignment==MainAxisAlignment.spaceEvenly){
    wrapAlignment=WrapAlignment.spaceEvenly;
  }else if(alignment==MainAxisAlignment.spaceAround){
    wrapAlignment=WrapAlignment.spaceAround;
  }
  return wrapAlignment;
}